{% extends "layout.html" %}
{% block body %}
  {% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %}
  <form method=post>
    <body>
	<h1>Search Results</h1>
		{% if l == 0 %}
			<h2>There are no search results</h2>
		{% endif %}
		{% for i in range(0, l) %}
			{% if w[i] == 1 %}
				<h3>{{ searchResults[i].text }} Creator</h3>
			{% else %}
				{% if w[i] == 2 %}
					<h3>{{ searchResults[i].text }} like dislike spam</h3>
				{% else %}
					{% if w[i] == 4 %}
						<h3>{{ searchResults[i].text }} liked</h3>
					{% else %}
						{% if w[i] == 5 %}
							<h3>{{ searchResults[i].text }} disliked</h3>
						{% endif %}
					{% endif %}
				{% endif %}
			{% endif %}
		{% endfor %}
	</body>
  </form>
{% endblock %}